<template>
  <!-- 三级级列表 -->
  <div class="classifity-warp">
    <div class="classifity-list">
      <div class="list-nav">
        <span class="el-icon-s-operation">数据列表</span>
      </div>
      <!-- 列表主要内容 -->
      <div class="list-content">
        <el-table
          ref="multipleTable"
          :data="tableData"
          border
          tooltip-effect="dark"
          style="width: 100%"
        >
          <el-table-column type="selection" width="55"> </el-table-column>
          <el-table-column prop="id" label="商品编号" >
          </el-table-column>
          <el-table-column prop="name" label="品牌名称" >
          </el-table-column>
          <el-table-column prop="level" label="级别" >
          </el-table-column>
          <el-table-column prop="count" label="商品数量" >
          </el-table-column>
        </el-table>
        <!-- 分页 -->
        <div class="classifity-footer">
          <div class="pag">
            <el-pagination
              background
              layout="prev, pager, next"
              :total="currentCount"
              @current-change="toPage"
            >
            </el-pagination>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ThreeLevel",
  data() {
    return {
      tableData: [{
          id: 1,
          name: '王小虎',
          level: '3级',
          count:33,
        }, {
          id: '2',
          name: '王小虎',
          level: '3级',
          count:44,
        }, {
          id: '3',
          name: '王小虎',
          level: '3级',
          count:7,
        }, {
          id: '4',
          name: '王小虎',
          level: '3级',
          count:5,
        }],
      current: 1,
      currentCount: 1,
      size: 10,
    };
  },
};
</script>

<style lang="scss" scoped>
@import "@/assets/sass/var.scss";

.classifity-warp {
  padding: 0px;

  span {
    color: #999;
    size: 14px;
    font-weight: 500;
  }
  .nav-right {
    float: right;
    margin-top: 4px;
  }
  .classifity-list {
    background-color: rgba(243, 243, 243);
    border: 1px solid rgb(228, 228, 228);
    margin-top: 20px;

    .list-nav {
      padding: 0 20px;
      line-height: 50px;
      span {
        color: #666;
      }
      .list-btn {
        float: right;
        margin-top: 5px;
      }
    }

    .list-content {
      .classifity-add {
        color: $panel-color;
      }
      .classifity-look {
        color: $panel-color;
      }
      .classifity-footer {
        height: 50px;
        padding-top: 0;
        box-sizing: border-box;
        width: 100%;
        border: 1px solid #e4e4e4;

        .pag {
          float: right;
          margin-top: 8px;
        }
      }
      .classifity-footer ::v-deep .active {
        background-color: $panel-color !important;
      }
    }
  }
}
</style>